<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="language" content="en">

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php $link=Yii::app()->request->baseUrl;
	echo $link; ?>/css/screen.css" media="screen, projection">
	<link rel="stylesheet" type="text/css" href="<?php echo $link; ?>/css/print.css" media="print">
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo $link; ?>/css/ie.css" media="screen, projection">
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo $link; ?>/css/main.css">
	<link rel="stylesheet" type="text/css" href="<?php echo $link; ?>/css/form.css">
	
	
	<script src="<?php echo $link; ?>/js/jquery.min.js"></script>
	<!--src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" -->
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>


<body>

<div class="container" id="page">

	<div id="header">
		<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->

	<div id="mainmenu">
		<?php 
		 //$namhoc;
		$this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Trang chủ', 'url'=>array('/site/index')),
				//array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				//array('label'=>'Liên hệ', 'url'=>array('/site/contact')),
				array('label'=>'Giảng viên', 'url'=>array('/giangvien/admin'),'active'=>($this->id=='giangvien' or $this->id=='donvicongtac' or $this->id=='ngach' or $this->id=='site')?true:false),
				array('label'=>'Kế hoạch đào tạo', 'url'=>array('/nhomlop/admin'),'active'=>($this->id=='monhoc' or $this->id=='qhmonhom' or $this->id=='nhomlop' or $this->id=='chuongtrinh' or $this->id=='thongtinsv')?true:false),
				array('label'=>'Phân công', 'url'=>array('/phancong/admin'),'active'=>($this->id=='phancong' or $this->id=='congtackhac')?true:false),
				//array('label'=>'Phát sinh nhóm lớp', 'url'=>array('/site/page', 'view'=>'phatsinh')),
				array('label'=>'Báo cáo', 'url'=>array('/site/report')),
				array('label'=>'Đăng nhập', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Đăng xuất ('.Yii::app()->user->name.', năm học '.(string)Yii::app()->request->cookies['year'].' - '.((string)Yii::app()->request->cookies['year']+1).')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); 
		?>
	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>

	<?php echo $content; ?>

	<div class="clear"></div>

	<div id="footer">
		Thực hiện: Th.S Cao Thái Phương Thanh - Nguyễn Bá Phương - Đinh Diễm Xuân.<br/>
		DTU1111 - Khoa Toán - Ứng dụng - Đại học Sài Gòn.<br/>
		<?php echo Yii::powered(); ?>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>
